package cn.wolfcode.domain;

import lombok.*;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Description: UserInfo实体类
 * @Author: 伍家钰
 * @Date: 2020/8/7 15:28
 * @Version: 1.0
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Document("userInfo")
public class UserInfo extends BaseDomain{
    //保密
    public static final int GENDER_SECRET = 0;
    //男
    public static final int GENDER_MALE = 1;
    //女
    public static final int GENDER_FEMALE = 2;
    //正常
    public static final int STATE_NORMAL = 0;
    //冻结
    public static final int STATE_DISABLE = 1;

    //昵称
    private String nickname;
    //手机
    private String phone;
    //邮箱
    private String email;
    //密码
    private String password;
    //性别
    private int gender = GENDER_SECRET;
    //用户级别
    private int level = 0;
    //所在城市
    private String city;
    //头像
    private String headImgUrl;
    //个性签名
    private String info;
    //状态
    private int state = STATE_NORMAL;
}
